# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=express
pkgver=4.17.3
pkgrel=1
epoch=1
pkgdesc='High performance, high class web development for node.js.'
arch=('any')
url='http://expressjs.com/'
license=('MIT')
depends=('nodejs')
makedepends=('git' 'npm')
source=("https://github.com/strongloop/express/archive/$pkgver.tar.gz")
sha512sums=('5c45441a33240d058f351b6d6588aa3a6de853769c58a1cc5a44f517c3c672834f0944195448dc541b14ddb89a3c501083b09440b5d7cb041a5d2f419d0ba304')

package() {
  cd "$pkgname-$pkgver"

  _npmdir="$pkgdir/usr/lib/node_modules/"

  install -dm 755 $_npmdir

  cd $_npmdir

  npm install --user root -g --prefix "$pkgdir/usr" "express@$pkgver"
  rm -rf "$_npmdir/root"
}

